package com.neu.credit.creditscore.entity.parking;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@TableName("parking_fees")
@Schema(name = "ParkingFees", description = "停车计费信息表")
public class ParkingFees {

    //未支付
    public final static int PAY_STATUS_NO = 0;
    //已支付
    public final static int PAY_STATUS_HAS = 1;

    @Schema(description = "费用ID，自增主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "预约ID")
    private Integer appointmentId;

    @Schema(description = "停车开始时间")
    private Date startTime;

    @Schema(description = "停车结束时间")
    private Date endTime;

    @Schema(description = "总费用（精确到分）")
    private BigDecimal totalFee;

    @Schema(description = "支付状态 0-未支付，1-已支付")
    private Integer paymentStatus;

    @Schema(description = "创建时间")
    private Date createdAt;

    @Schema(description = "更新时间")
    private Date updatedAt;
}